local K $Kmain
use "$datapath/004_hom_results_fullsample_cog_simple_K`K'_LL.dta", clear
keep b_HetSymm se_HetSymm truncation
gen ub_HetSymm = b_HetSymm+1.645*se_HetSymm
gen lb_HetSymm = b_HetSymm-1.645*se_HetSymm
local xtitle="L{sub:max}"
local ytitle="Estimate of {&beta}"
local yrange="-.1 .1"
gen zero=0
keep if truncation>=70
twoway (rarea lb_HetSymm ub_HetSymm truncation, color(gs10%50)) || ///
		(line b_HetSymm truncation, lcolor(black) ) || (line zero truncation, lcolor(black) lpattern(dash)), scheme(s1mono) legend(off) ///
					xlabel(500(500)3000) ytitle(`ytitle') xtitle(`xtitle', size(large)) title("") note("") yscale(range(`yrange'))
graph export "$figpath/beta_lin`K'.pdf", replace		
